package com.wangzh.lang;

import java.util.Arrays;
import java.util.HashMap;
import java.util.StringJoiner;

public class StringJoinerDemo {
    public static void main(String[] args) {


        int a = 2;

//        byte[] arr = {1,2};
//        byte[] des = new byte[3];

//        System.arraycopy(arr,0,des,1,arr.length);
        // [0, 1, 2]

//        System.arraycopy(arr,0,des,0,arr.length);
        //[1, 2, 0]
//        System.out.println(Arrays.toString(des));
//        StringJoiner stringJoiner = new StringJoiner(",", "[", "]");
//
//        char[] arr = {'a','c'};
//        for (char c : arr) {
//
//            stringJoiner.add(Character.toString(c));
//        }
//        System.out.println(stringJoiner.toString());
//
//        StringBuilder stringBuilder = new StringBuilder();
    }

}
